package rattlesnake.callback.server.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpObject;
import io.netty.handler.codec.http.HttpRequest;
import rattlesnake.callback.http.ResponseStatus;
import rattlesnake.callback.server.HandlerAdapter;
import rattlesnake.callback.util.HttpAsyncUtil;

/**
 * @Package: rattlesnake.callback.server.handler
 * @Description: 如果没有发现处理器就返回该处理器
 * @author: liuxin
 * @date: 17/4/12 下午1:47
 */
public class DefaultMethHandler implements HandlerAdapter {
    @Override
    public void forWard(ChannelHandlerContext ctx, HttpRequest request, HttpObject msg, String categoryUrl) {
        HttpAsyncUtil.defaultResponse(ctx.channel(),request, ResponseStatus.NOT_FOUND);
    }
}
